package yygh.hosp.Repository;

import yygh.hospital.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface DeparmentRepository extends MongoRepository<Department,String> {


    Department getDeparmentByHoscodeAndDepcode(String hoscode, String depcode);

    Department getDeparmentByDepcode(String depcode);
}
